package com.jiunuan.live.id.generate.provider;

import com.jiunuan.live.id.generate.provider.service.IdGenerateService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author: jiunuan
 * @date: 2024/7/28
 * @description: 用户中台服务提供者
 */
@SpringBootApplication
@EnableDubbo
@EnableDiscoveryClient
public class IdGenerateProviderApplication {
    @Resource
    private IdGenerateService idGenerateService;
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(IdGenerateProviderApplication.class);
        springApplication.setWebApplicationType(WebApplicationType.NONE);//Dubbo不使用tomcat，使用netty
        springApplication.run(args);
    }
}
